package com.test.moudle.sys.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "t_token")
public class Token {

    @Id
    private Integer userId;

    private String token;

    private Date expireTime;

    private Date updateTime;

    public Token() {

    }

    public Token(Integer userId, String token, Date expireTime, Date updateTime) {
        this.userId = userId;
        this.token = token;
        this.expireTime = expireTime;
        this.updateTime = updateTime;
    }

}
